legacy: fix for run_sql import in bibrecord

* Addresses issue with imports outside application context.  (closes #2295)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
1: D400 First line should end with '.', not 'f'
1: D205 Blank line missing between one-line summary and description
35:28: E126 continuation line over-indented for hanging indent
38:37: E126 continuation line over-indented for hanging indent
50: D101 Docstring missing
54:69: E502 the backslash is redundant between brackets
54: D400 First line should end with '.', not 'l'
54: D205 Blank line missing between one-line summary and description
98:69: E502 the backslash is redundant between brackets
99:98: E502 the backslash is redundant between brackets
124:110: E502 the backslash is redundant between brackets
128:103: E502 the backslash is redundant between brackets
129:31: E127 continuation line over-indented for visual indent
136:75: E502 the backslash is redundant between brackets
138:92: E502 the backslash is redundant between brackets
140:77: E502 the backslash is redundant between brackets
148:89: E502 the backslash is redundant between brackets
158:1: E302 expected 2 blank lines, found 1
158: D401 First line should be imperative: 'Thi', not 'This'
158: D205 Blank line missing between one-line summary and description
225:51: E502 the backslash is redundant between brackets
226:75: E502 the backslash is redundant between brackets
236:30: E711 comparison to None should be 'if cond is not None:'
303:76: E502 the backslash is redundant between brackets
304:75: E502 the backslash is redundant between brackets
311:83: E502 the backslash is redundant between brackets
312:75: E502 the backslash is redundant between brackets
314:88: E502 the backslash is redundant between brackets
315:64: E502 the backslash is redundant between brackets
316:63: E502 the backslash is redundant between brackets
339:9: E125 continuation line with same indent as next logical line
343:1: E302 expected 2 blank lines, found 1
343:58: E231 missing whitespace after ':'
343:74: E231 missing whitespace after ':'
343: D401 First line should be imperative: 'Thi', not 'This'
343: D290 White spaces around docstring should be trimmed.
343: D209 Put multi-line docstring closing quotes on separate line
343: D400 First line should end with '.', not 'g'
343: D205 Blank line missing between one-line summary and description
359:1: E302 expected 2 blank lines, found 1
359: D401 First line should be imperative: 'Perform', not 'Performs'
359: D400 First line should end with '.', not 'd'
359: D205 Blank line missing between one-line summary and description
395:73: E502 the backslash is redundant between brackets
405:1: E302 expected 2 blank lines, found 1
405: D401 First line should be imperative: 'Perform', not 'Performs'
405: D400 First line should end with '.', not 'e'
405: D205 Blank line missing between one-line summary and description
444:75: E502 the backslash is redundant between brackets
445:43: E126 continuation line over-indented for hanging indent
445:80: E502 the backslash is redundant between brackets
466:1: E302 expected 2 blank lines, found 1
466: D401 First line should be imperative: 'Perform', not 'Performs'
466: D400 First line should end with '.', not 'o'
466: D205 Blank line missing between one-line summary and description
515:1: E302 expected 2 blank lines, found 1
515: D401 First line should be imperative: 'Perform', not 'Performs'
515: D400 First line should end with '.', not 'd'
515: D205 Blank line missing between one-line summary and description
554:70: E502 the backslash is redundant between brackets
555:45: E126 continuation line over-indented for hanging indent
555:83: E502 the backslash is redundant between brackets
559:76: E502 the backslash is redundant between brackets
574:1: E302 expected 2 blank lines, found 1
574: D401 First line should be imperative: 'Perform', not 'Performs'
574: D400 First line should end with '.', not 'd'
574: D205 Blank line missing between one-line summary and description
626:1: E302 expected 2 blank lines, found 1
626: D401 First line should be imperative: 'Thi', not 'This'
626: D301 Use r""" if any backslashes in a docstring
626: D400 First line should end with '.', not 'n'
626: D205 Blank line missing between one-line summary and description
661:77: E711 comparison to None should be 'if cond is not None:'
673:76: E502 the backslash is redundant between brackets
674:79: E502 the backslash is redundant between brackets
675:77: E502 the backslash is redundant between brackets
698:1: E302 expected 2 blank lines, found 1
698: D401 First line should be imperative: 'Thi', not 'This'
698: D400 First line should end with '.', not 'd'
698: D205 Blank line missing between one-line summary and description
711:38: E711 comparison to None should be 'if cond is not None:'
723:1: E302 expected 2 blank lines, found 1
723: D401 First line should be imperative: 'Thi', not 'This'
723: D400 First line should end with '.', not 's'
723: D205 Blank line missing between one-line summary and description
748:66: E502 the backslash is redundant between brackets
749:33: E127 continuation line over-indented for visual indent
752:1: E302 expected 2 blank lines, found 1
752: D401 First line should be imperative: 'Thi', not 'This'
752: D400 First line should end with '.', not ','
752: D205 Blank line missing between one-line summary and description
773:1: E302 expected 2 blank lines, found 1
773: D401 First line should be imperative: 'Thi', not 'This'
773: D400 First line should end with '.', not 's'
773: D205 Blank line missing between one-line summary and description
824:1: E302 expected 2 blank lines, found 1
824: D401 First line should be imperative: 'Thi', not 'This'
824: D400 First line should end with '.', not 'l'
824: D205 Blank line missing between one-line summary and description
845:1: E302 expected 2 blank lines, found 1
845: D401 First line should be imperative: 'Thi', not 'This'
845: D400 First line should end with '.', not 'm'
845: D205 Blank line missing between one-line summary and description