got db plugin to work on write side