Change out the use of mysql for postgresql