signal handlers added. echo from db_query removed