added new idea function, sort, and upvote saving to db
Committing changes