Update SQL tables and structure