immense sql performance boost

... by decreasing the number of tables involved when querying lists of
entries