Converts testing to rspec, db to postgres and prepares for deployment