built sql, random presentation of thought functions, posting thoughts implemented, test data added