Add log db support