more flexible database checking in case userid = 1 is non existent
more flexible database checking in case userid = 1 is non existent

martinp23/elabchem,elabftw/elabftw,elabftw/elabftw,elabftw/elabftw,elabftw/elabftw,elabftw/elabftw,martinp23/elabchem,martinp23/elabchem