Updating spacing & implementing mysqli