read mysql schema including foreign key constraints