Refactored NamedParameterStatement to manage connections and prepared statements all by itself
Merge pull request #875 from vitalidze/master

Database code refactoring