Maybe DT shut down unexpectedly and left the database lock files in place?
If you are running windows the location is:
C:\Users\XXXXXX\AppData\Local\darktable
Where XXXXX is your user logon name , Note AppData is a hidden directory
Look for files with the suffix .lock and delete them, then reload DT