added method for retreiving other types from database