modified readme, db connection and index