Implementing the Services needed to save data to database