Add settings and database class.

Add basic specs for settings and database.