fixing add user and other sql stuff