Magic number for the four initial things in the sql call, but made much cleaner and clearer in the coming pull request.