Save thoughts to database