add more database functions to the legal profiles