db and auth