Update database.py

Add arg1 and arg2 to sensors