Add  missing sql statements