changed sql table structure