writing to our own db