Added games table and foreign key support to sqlite db