db interaction added(necessary to keep a good context)