Database class done