Database finally working

Added the database file to ignored because I don't want to inflate the
versioning software with crazy change commits.

Figured out what was wrong before with database connectivity. I was
confusing Connection and Cursor (well, not using Cursor at all). Also I
was not committing at the end of each method, so data was never getting
written out. Fixed that.

Also made the database file a variable defined at the top of the file.

Beginning to implement the session handling routines.