Updated backend to support days