getDB, getConnection

copy from burger bar (not all functions)