Done with implementing PDO in get_mothers function.