corrected sql table