Updated Database methods in resource_monitor.py