Deal with postgres and mysql in postupdate-service-restart