Allow the creation of maps from DatabaseEntry objects

I have had this one lying around for a while.