Fail on database errors
Moved real_escape_string from completer query, to inputs
Merge pull request #4 from puggan/master

Silently failed on bad placed real_escape_string