Extend database schema info

Extend database schema info with support user defined aggregate functions.