database code using sql in python shell