mysqli_ to mysql_ changes to test on Heroku