minor fix
added function to create task in the database