Fixing bugs in convert database script
Restricting records to service by default