Database now closes connection after each query and reconnects if closed to ensure no more connection and locked database problems.

Fixed more internal 500 errors.
fix for tornado error handler
Merge remote-tracking branch 'origin/dev'
Name parser performance fixed, manual searches fixed.
Merge remote-tracking branch 'origin/dev'
Fixed Name Parser issues, incorrectly matched current regex used to parse results and anime patterns didn't match 1 to 3 digit numbers for absolute.
Merge remote-tracking branch 'origin/dev'
Fix for __exit__ DB errors
Merge remote-tracking branch 'origin/dev'
Fix for KeyError: None in displayShows
Moved scene conversion routine in Name Parser to end so that it only converts the best result match and not every single one wasting time and cycles.
Merge remote-tracking branch 'origin/dev'
Testing new faster method of obtaining show object via regex matching for series name during Name Parsing for results.
Fix for NoneType name parsing issues from new test code.
Fix for h264/x264 matching as absolute number.
Fix for missing code in Name Parser
Fix so that scene converting does not happening when performing naming pattern routines.
Fix for DB issues on new installs relating to database version checks.
Merge remote-tracking branch 'origin/dev'
Fixed DB issues related to displaying plot details for show episodes.
Merge remote-tracking branch 'origin/dev'