sql generate project