added Database class