database added inlog method