Exit if we failed to open the sqlite3 database.

Signed-off-by: Thiago Farina <tfarina@chromium.org>