writing to db YEAH