Corrected a bug where an empty database would result in TypeErrors
No idea what I changed
Remove Python core modules from dependencies

Modules in core should not go in dependencies. Else pip will try and
fail to download [and install] them.
Refactor the time-based code in watering view
Fixed indent and some changes to the old way of doing stuff
Missed an indent
Added comparison check to see if it works
Fixed typo in function def
Fixed merge conflict