match the database code