Moved db schema-related methods out of Mapper