Database remodeling for Heroku deployment