First commit with basic functions such as open and close connection.