[FIX] remove mail debug output
use a full relative path instead of ./
Initial PDO setup
Error handling
Cleanup
Added dummy close()
fixed bind_result, corrected passing of reference