Update db.py

corrected version of CREATE and INSERT