Data retreival from information schema through one query

Signed-off-by: aurel <aurel.savoiu@cti.pub.ro>