added functions and db files
Created partials