Updated loading style, moved CRUD functions to server code