Out-of-date backend authentication: added SHA1 checksum for table switching

Out-of-date backend authentication: main routines moved in dbusers.c
and services.c. Added SHA1 checksum for table switching