fixed db auth