Untested Finish of DatabaseOperator class

i finished up most of the code from the databaseOperator class, although
absolutely zero of it is tested.