Adding views, database config