add interface for table models
add partial data extraction from db
fix partial table model
upgrade interface for data services

minor fixes
reformatting code