added __contains__ method to Database class so that one can easily check if an entry exists