Added database table insertion and checking for existing entries. Some data still dummy.