add interface for table models
add partial data extraction from db
add partial table model

minor fixes