Fix errors in weberp sql changes