Code while reading 'Seven Databases in Seven Weeks book'