Fixed identifier saving (again).
Catch some sqlite errors we were previously missing.
Corrected debugging flag to: ENABLE_DB_DEBUG.
Merge pull request #13 from kenmyrs/buildFlags

Corrected debugging flag to: ENABLE_DB_DEBUG.
Merge pull request #12 from kenmyrs/errorHandling

Catch some sqlite errors we were previously missing.
Merge pull request #11 from kenmyrs/idSaving

Fixed identifier saving (again).