Fix for bug in updatedatabase (extra comma) (fixed by Chris Nighswonger)