Connecting to a SQL DataBase using python and quering it