Some more error handling

added some error handling such as when the mysql server is not
connected. Also the style changed a little such as the container_wrapper
and the menu_wrapper.