auto database commit

Signed-off-by: Sweil <mail@sweil.de>