storage and search in tables created ... TODO improve code (this is just a test yet)