Added Bootstrap; prettified the show page; refactored DB connection code for Flask app