Trying to count the number of entries there are in the database.
Made it so that it will automatically figure out the entry id
Code cleanup