Get different data types from db. Platform independent variant.