adding in log database/resource getters/setters and making the datetime a unix timestamp, not a string