fixes database streaming functionality