A lightweight data access layer