Done with implementing PDO in get_wives function.