added method to initialise database, main method, and querying method