fix db instance creation
fix phpunit error with pdo
added last_error()
remove output
fixing db instance for good