add some convenience methods to make the database more hash like