Use file db and fix ProjectType's __init__