add common class extension;begin abstracting db