Parses XML elements into Database