WIP: saving context to database.

Signed-off-by: Jiri Hnidek <jiri.hnidek@tul.cz>