got rid of getting column names via direct constant access
added real depth column to entity table to simplify querying