issue #22 Smarty database connection

added config
added class file

todo: table selet in constructor, select and select_array function
issue #22 Smarty database connection

removed singleton pattern
fixed #22 Smarty database connection

improved mysql class
Merge pull request #24 from cnmicha/22

22