Extracted database code.