two new files for getdatabykey functionality