Added database structure for anyone who wants to try this out.