add logg messsages on database usage