fix codeship build failure

added try except to the database config; will use sqlite3 for codeship
instead of postgres