added initdatabase class

can now initialise db with 1000 entries; however this is commented out
as we only really do it once.