refresh database schema before generation

if tables are altered directly in Database Yii cache of database schema might not reflect database changes. This change refreshes the schema cache of Yii.