Sqlite db batch