Tweaked the views and logged attempts to database.