Completed all basic DB functions.