Implement insert_id/affected_rows and add a blob type that works with sqlite.