modified database helper added csv reader