added documentation on PDO connection
simplified db connection