def _new_map_from_user(self, user, name, filepath):
        """ Create a new mapfile entry in database. """
        map = Map(name, filepath)
        map.user = Session.query(User).filter(User.login==user).one()
        Session.add(map)
        Session.commit()
        return map
Create a new mapfile entry in database.