Fixed error in new SQL table code.