connection db to ui