MLHR-943: changes to db api