semaphores & daemon (mysql)