Fixed error in db SQL.