Backend changes to the database tests in main activity