Fix whitespace
Fix broken database check