Split out MySQL and PostgreSQL management into separate modules