store to db