fixed some bugs in models.py and updated .gitignore with .db and more