updated app to run sqlite3 in test and development and pg in production