create diagram from database schema