finished backend of app