custom array adapter with sql

hard as shit