DB connect, worker + authenticate method