Reads statement document to store the data in a database.