updated schema and added new tables