Is it a good idea to connect to the database (sqlite) at the constructor of the class, that will hold database handler when daemon(service) running? I'm feeling that it's bad idea, but does not know why.. Or it's ok?
edit: and what to do if I will got the error when open connection.