chnages to config & moved datatypes to models package

adapted to https://github.com/robfig/config for setting database
credentials and moved datatypes to models package