Validate the database credentials.

Note: this is done with SpoonDatabase now, but this should be replaced
by something more Symfony later (like doctrine).