Don't close DB connection & removed commented code
Added redirection if saving process works properly