getting first component from database works