db optimizer+autogenerate rek number