updated database to use sqlite3 on development and pg on production