using mysql instead of postgresql (kind of working i think)