Playing with getting types from database