IMPORTANT: unified and fixed connections to DB