Small fix so that fk checks run on startup if startup-add-missing is used, and to handle lower case table/etc names in the db