updated the database with new mapping data.  Bug with query syntax fixed, had wrong varible names in the string build up.