adds Database class that didn't test well