allow skipping database.php creation if already existent and valid.

also made named param query string (future proof).