Added error

Capturing error message and error code of SQLite.