I think we'd better to create a tmp database object and assign sqlite_db_ with it in the end