Add const qualifiers for appropriate member functions.
Add database class.