Complete guide to connect SQL DB to python