Every requests to database is done inside the main thread