core: [db] remove unused function

The isloggingenabled function is not used anymore ans should be deleted.

Change-Id: I2a9ef1210c5371948a0f583c30e11da54faf5790
Signed-off-by: Eli Mesika <emesika@redhat.com>