Changed some data types in tasks model and added controller