MLHR-943: changes to db api
Merge pull request #828 from chandnisingh/MLHR-943

MLHR-943: changes to db api