Connection to database failed. Ensure api is writable.

Catch PDOException & Exceptions in cases like connection to DB failed or DB dir not writeable and return 503 status.