[task] Complete the auto generate program for db