extend database patch