First pass at setting up SQL