exact db operation to task repository class
use bootstrap js to replace jquery-ui dialog
refactor code