Added DB functionality for most part. Now need to get saving for guess vectors, agreed upon tags, and the survey itself. Also need to implement the Flickr-based automatic db growth.