SQL Structure

Kind of forgot to include this when releasing the code...