Several bugs fixed

- statement.closeOnCompletion() threw error
- added new queries
- removed queries from CatPageServlet.java
- updated IdeaListItem.java
- updated ideas.jsp
- removed databaseCheck from MainpageServlet
- Tuple threw an error at fromResultSet(ResultSet in) if in was an empty
ResultSet. Fixed: returns null if an empty ResultSet is given.