moved database query result into adapter to later allow more general results