backend converted to PHP, tasks are now stored successfully