modified db files, added some mechanics to add data to the DB