Copied and applied IDatabase from bukip-web