updated from database