Added few commands and moved connection object to another file