fixed typo in database class