fixed how model handled somethings thanks to heroku's pg