add task for mysql
refactoring: use when for roles property
add: mongodb task