Added basic select and general sql command functions, as well as defined
functions that return query info.