Add collection models

also changed everything SQLite related to the collections projects.