[FIX] Log SQL errors on invalid checkUserPassword

Fixes #1366 once merged.
Merge pull request #1368 from TheSerapher/issue-1366

[FIX] Log SQL errors on invalid checkUserPassword
[ADDED] last_login timestamp

* [RENAMED] sessionTimeoutStamp to last_login
* [UPDATE] user class to store login time after successful login
* [ADDED] SQL Upgrade file for new column
* [UPDATE] Updated base SQL file

Fixes #1162 once merged.
Merge pull request #1369 from TheSerapher/issue-1162

[ADDED] last_login timestamp
Merge branch 'next' into issue-1345