modifies dbmacro for heroku