Wrong method to extract db data