introducing db to server side