postgres up and running
refactoring, testing,
TODO torquebox not working for now