Configure database with postgres instead of sqlite.