Removed all direct interaction between the server and the database