get Write writing to the db