Added database dir to preferences
Fixed deselction problem in CLI (thanks Slaxmax)
Updated