Refactored dbcal.py
Added a function to add events to the database.
Added inore .pyc files.