merge makedb.py into manage.py