did some scratch work data access layer