fixing up code + update mysql schema