Database changed to Sqlite and updated associations