Added db stuff into mtserver