Avoid crashing if db is not ready