Update DatabaseInteractor.java

Added a function to get all people and made the execute query function less specific to the query we were using. This way, the object can be used in the final project as well.