Revert "- db layer"

This reverts commit 40e58735442f5a6486d9eeb8419e9752a861cf3d.
- template

- db test