fixed views and modified previous migrations to set default values to table fields