Something is broken there. Please try moving your darktable config directory away to make sure that the database is not broken.
If that doesn’t help you should have a look in the log file, maybe darktable crashes while exiting and somehow breaks the db doing so.
Have a look at the FAQ to find the config dir and log file.