Added a ORM for db access and some other stuff