Migrated customer_email to PDO database class, refs #1287
Fixed a typo, small improvements
Merge pull request #156 from BNoiZe/master

Migrated customer_email to PDO database class, refs #1287