PDO based authentication library for PHP