Now uses SQLite3 for local testing and postgreSQL for production