moved db-query from view to model
added public field to model (already in use before)