Added:
- Add last errormessage to database locked error
use "tab" instead of "space" for indention
fix a typo
altered:
using QSQLDatabase to avoid setting the lastErrorMessage in the loop
revert the usage of QSQLDatabase
Merge pull request #747 from acquaman/Issue745

Issue745: Add last errormessage to database locked error