updated views and db config