Concat of text string was causing the wrong number to be entered in database.