add console management
delete write_to_db.py