fixed exec to create database if doesn't exist
removed unused context menu
nicer formatting for view page