Display based on SQL

Display is now based on SQL. Item submission is not yet working