manage py and db file