Corrected SQL tables
Up version