changed db extracting methods, requirements specified