data layer updated.
data layer refactoring.
table names improved, small gui fixes.