Update samples to vesion 2.0

- Use embedded H2 database.
- Clean old code.