Add transaction(), batchInsert(), batchInsertUpdate() functions to database