Added unit tests to cover 100% of the code. Added sample database.