Created a database service to centralize db calls