Replacing custom database connection with PDO.
Merge pull request #3 from weactivist/PDO

Replacing custom database connection with PDO.