Added valid field to DB