moved orm stuff to config file
updates