I had the same error message. In my case it was caused by having a configuration file that did not specify the locations of the database files. Adding the following three lines (with FILENAME specified) resolved this problem.

Code:
database=file:FILENAME.db
database_out=file:FILENAME.db.new
database_new=file:FILENAME.db.new