Refactored all CRUD to methods outside of main