Lib, fix gui for db change