Fixed bugs in db_population.py
Add model and view to start visualising caprifits