Added getWeekDay() in Util\Date
Added db exception when migration fails
When scaffolding database, let current db version be 0 when system table in not present