new commit

new commit yaya, test if profile works for you, you must execute the sql
stored procedures in your db to work. if it doesn't work I might just
rewrite it into php functions.
also I updated something I misunderstood.