add writeins to database