[Backend] Fixed mongodb adapter template to work propertly with management operations. Added SQL entities helper.