Working on adding logging to database/login interactions