Finished the Detabase class