Added domain to database, started algorithm for processing queries