WIP creating connection and query objects