begin moving configuration to external file, add simplesite singleton for global variables
update index to use SimpleSite singleton
add query prep and function for checking if the db is initialized to dbi,