Solved problems with database and adapters.
Chapter 9 - Databases, completed