added: database class