Delete db_common and add signal to handle ctrl+c