Added function listsql to automatically output SELECT results
Added code to pre-populate database