Fix db setup script to work on mac