Impl selectRecentPackets function to execute query

Function takes mysqli object and SQL Select query and uses query to request
the recent, un-triangulated packets