Updated fetch method to work with PDO
Deleted useless looped link
updated library to use PDO's use of prepare for all SQL queries and removed the arbitrary return -1 to prevent execution of functions.