assign db to null on logout