Fix ordering of starting Apache and PostgreSQL.

If Apache is started before PostgreSQL it complains about problems
with connecting to database.