add operation handlers and db impl