task 1-3 can output their results onto database