PB Several fixes. Add sql dbs