working version with default data into tables