Sqlite3 store component versions

Signed-off-by: Markus Pargmann <mpargmann@allfex.org>
Handle sigterm/sigint

Signed-off-by: Markus Pargmann <mpargmann@allfex.org>