Updated _func.php & user CP

Can someone check the PDO of the function, the DB isnt updating (Line
151 - 175)