Missed some sql statements.