Db call - write