Added database implementation. Finished lesson 4a.