Fixed bug with reading attributed from DB: this can only be done before daemonization, after the connection is closed.
Reading all attrs to static class vars in init.