Fix some issues with verify database code.
Fix some issues with verify database code.

firefly-iii/firefly-iii,firefly-iii/firefly-iii,firefly-iii/firefly-iii,JC5/firefly-iii,firefly-iii/firefly-iii,JC5/firefly-iii