Database adapter implementation