Modified database queries & updates to work in a serial fashion