update Gemfile with psql gem in dev
setup db, works fine
resave files left open from before the repo got srewed up
added a few more lines into model and controllers e.g. validates, redirect_to etc
restore app back to before .. phew :)