added: db.py
added: signin template
added: rules in .gitignore
added: db.authenticate