Added generic database delete function.
Delete existing sessions of a user before creating a new one.
Use instance of session class to convey session information.
Lookup sessions from database.