DBCoder and DBService refactoring. Added support for one-to-many relations