Update Database implmentation to fix the authority toolchain