added name argument to pdo lastinsertid
added pdo query helper with tests
added pdo null param and close wrapper
refactored email from parameter