Corrected users.sql ,deleted useless constraints, edited for adoptation of functions