Functions to get integers, strings and dataset from database done