I read that nsbasic connects to sqllite as its database. Does italso connect to PostgreSQL
SQLite runs within the browser, so it is available locally wherever you are running AppStudio.
PostgreSQL does not run on mobile devices. To connect to it, you'll need to use AJAX:http://wiki.nsbasic.com/Ajax_made_Simple#Using_AJAX_to_get_info_from_a_database_on_your_server.