added config for collections, functions for dbPush