[Backend] Use postgres as test database
Change tests to use postgres instead of sqlite to ensure the same database behavior between test and development/production database.
Change tests to use postgres instead of sqlite to ensure the same database behavior between test and development/production database.