Adding support for db and async
Modified Server