Backend: Add logic for saving agent configuration in DB