cached dbfunctions