Refactored codebase to be set to SQL instead of MongoDB