modified formatting dbFunctions