can't use try-with-resources when returning resultset (statement is closed automatically at end of try block, this closes the resultset, and it can't be used by the calling function)