I tried this and it created the database for me
Code:
mkdir MyBooks
calibredb restore_database --really-do-it --library-path /home/petert/MyBooks
I was then able to add books to it
Code:
calibredb add Downloads/* --library-path /home/petert/MyBooks/
At no time did I launch the GUI