added a connection to the sql db and a get and put query