initial steps towards database driven version of site