Delet unessary objects and libs, added db operation for a few service