fixing database table collumns names etc