1> The database is corrupted and needs recreating
2> The code that reports the error isn't checking that you running in cmdline and therefore displays an error message as if a gui when it isnt which is why you get the headless error.
So remove the old database as follows:
rm -fr $HOME/.songkong/Prefs/Database
when SongKong nexts starts it should create new database and work as expected.