Time range query implemented, delete seems to not working anymore though