create separate db file manager for keys and contacts + fix bugs