Ignore sqlite files
Use Doctrine2 ORM for preferences

Let's start using an ORM for objects retrieved from the database.
Add some basic tests for Preferences