fix a bug with updating the soq db and make it more alterable