Update database schema and companion contract class