data base puqt and sql interaction