Enhance configurations to database connection. Accept direct pdo
connection.