binding between model and table not working