HAS NOT BEEN TESTED ON HEROKU. Added hibernate, postgresql support.