fixed bug with db log