moved the SQL schema definition from Q to SQL files