Initialize and shutdown sqlite3 in create.c

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