Add -k option to db and dir to keep window open