Connect the service API to the DB

Change-Id: I89e65a7b0ba5c21cf20c41898ed4eac645d609d6