code style, fixes

New code style (PSR-2)
Fix escaping special words
Added function getFoundRows()
etc