Start the right database when starting all services

We were blindly starting mysql, even if using postgresql.