DELETE old db-entry and INSERT new one instead of UPDATE it

Signed-off-by: Lehner Florian <dev@der-flo.net>
remove unused #defines

Signed-off-by: Lehner Florian <dev@der-flo.net>