all functions working
updated retrieve function
added queries for table creation