context for database updated properly