structure change, some dbhelper methods