Use c3p0 for JDBC connection pooling; the MariaDB connection gets terminated when running the daemon for a long time