move datamapper configuration to models file