fixed permissions in db setup script