created tables and implemented retrieve operations