Error during data insertion to log-table: invalid database handle (no active connection)