there are errors in this from migrations and possibly wrong data base