add callback for store to db