Added a server factory to support initializing servers from array configs, updated tests, added test for PDO statement