Successfully added infrastructure flow so user can send data to database, also implemented and success and error message in AJAX call.