Store mqtt data in database using python

Yess ofcourse, but i want to store the incomin data in my local database not in the postgresql