getting initial db work and base template work done