Changed DB calls back to their correct versions.