Add database migration code
Move migration code, Database.cs to DatabaseMigration.cs
Move migration code, Database.cs to DatabaseMigration.cs
Add exception handle
Add FillObjectId method.
refs #380
refs #327
fixe #307
Merge from ymolinet #380
Revert "fixe #307"

This reverts commit f96acac6d757a9fffd027254964f8bb5084fa09d.
Add index to SQLite Database
Fix some bugs and refactoring.
Invoke database migration from database constructor.
Bumped version 1.2.4