Refactor for server data fetching and inserting, more efficient.