Update function names and calls. update database functions to dba class calls.
Create new class and copy over functions Add missed function