- db layer

- basic template preparation