Add tables installer.

1. add some core structs.
2. add a installer for installing database tables.